﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ex03.GarageLogic
{
    /// <summary>
    /// ValueOutOfRangeException class represents a specific Exception which indicate of an input value which is not in the defined range
    /// </summary>
    public class ValueOutOfRangeException : Exception
    {
        private float m_MainValue;
        private float m_MaxValue;

        public ValueOutOfRangeException(float i_MinValue, float i_MaxValue, string i_ExceptionMessage) : base(i_ExceptionMessage)
        { 
            m_MainValue = i_MinValue;
            m_MaxValue = i_MaxValue;
        }

        public float MainValue
        {
            get { return m_MainValue; }           
        }

        public float MaxValue
        {
            get { return m_MaxValue; }           
        }     
    }
}
